function plotconvergence(base, heuristic)
%PLOTCONVERGENCE

figure
hold on
%plot(-min(heuristic'), 'k');
%plot(-max(heuristic'), 'k');
errorbarfga(-mean(heuristic'), std(heuristic'));
plot(1:length(heuristic), ones(1, length(heuristic))*-base, 'k');
set(gca, 'xlim', [0 length(heuristic)]);
hold off

h = title('Convergence');
h = [h xlabel('Generation')];
h = [h ylabel('Dominated volume quotient')];
h = [h legend('SPEA2 standard deviation', 'SPEA2 average', 'Baseline', 'Location', 'Best')];

set(h, 'FontSize', 18);

